#!/bin/bash
# Elements-Counter

#variable declariations
ELEMENTS=0;
UNIQUE=0;



echo "Counting elements and unique elements.";
echo;

echo -n "Counting elements and unique elements.(1 of 1).....";
cd $SOURCES;                                               #move to scalable directory (where svg are contained)
SCALABLE=`find ./ -name *.svg`;                    #find all the files that are svg
for file in $SCALABLE                                      #for that files do...
do
	ELEMENTS=`expr $ELEMENTS + 1`; #counts elements
done
SCALABLE=`find ./ -name *.svg -type f`;                    #find all the files that are svg
for file in $SCALABLE                                      #for that files do...
do
	UNIQUE=`expr $UNIQUE + 1`; #counts elements
done

echo "[DONE]";
echo "The theme is actually composed by "$ELEMENTS" items (unique "$UNIQUE").";
echo;

exit 0
